﻿--测试不通过改遍历数据库模式
SELECT is_broker_enabled FROM sys.databases WHERE name = 'Parking' 

use Parking  
go  
ALTER DATABASE Parking SET NEW_BROKER WITH ROLLBACK IMMEDIATE; 

ALTER DATABASE Parking  SET ENABLE_BROKER; 